/**
 * Created by Administrator on 2017/7/10.
 */
$(function() {
    var key = getCookie('key');
    if (!key) {
        window.location.href = WapSiteUrl+'/tmpl/member/login.html';
        return;
    }

});

/**
 *  点击确认支付
 */
$(".comfirmPay").on('click',function() {


    var money = document.getElementsByClassName('inp')[0].value;

    if(money==''){
         creatLayout("请填写充值金额");
         return ;
    }
    var money = parseFloat(money);
    if (isNaN(money) || money <= 0) {
        $.sDialog({
            skin:"red",
            content:'支付金额必须大于0',
            okBtn:false,
            cancelBtn:false
        });
        return false;
    }
    toPay(money,'member_buy','recharge');
    return false;
})